home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 2
/
Mac Magazin and MacEasy Magazine CD - Issue 02.iso
/
Sharewarebibliothek
/
Applikationen
/
Alpha.5.81 folder
/
Tcl
/
SystemCode
/
codeWarrier.tcl
< prev
next >
Wrap
Text File
|
1994-06-12
|
1KB
|
61 lines
#================================================================================
#
# CodeWarrier Interaction
#
# Metrowerks currently has an incomplete appleevent interface.
# Apple events can be used to direct CodeWarrier to compile
# or add individual files, make the project, etc. However,
# there is currently no provision to report specific errors
# back to the controller.
#
#================================================================================
set CWCLASS MMPR
proc codeWarrierProc {menu item} {
cw$item
}
proc cwswitchTo {} {
global CODEWARRIER
checkCw
switchTo $CODEWARRIER
}
proc cwmake {} {cwDo Make}
proc cwrun {} {cwDo RunP}
proc cwupdate {} {cwDo UpdP}
proc cwDo {param} {
global CODEWARRIER CWCLASS
checkCw
switchTo $CODEWARRIER
set res [AEBuild -q -t 6000 $CODEWARRIER $CWCLASS $param]
}
proc cwadd {} {
global CODEWARRIER CWCLASS
checkCw
switchTo $CODEWARRIER
set fname [lindex [winNames -f] 0]
set res [AEBuild -q $CODEWARRIER $CWCLASS Comp "----" [concat {[alis(«} [coerce TEXT $fname -x alis] {»)]}]]
}
proc cwcompile {} {
global CODEWARRIER CWCLASS
checkCw
switchTo $CODEWARRIER
set fname [lindex [winNames -f] 0]
set res [AEBuild -q $CODEWARRIER $CWCLASS Comp "----" [concat {[alis(«} [coerce TEXT $fname -x alis] {»)]}]]
}
proc checkCw {} {
global CODEWARRIER
set CODEWARRIER [checkRunning "MW C/C++ 68K v1.0" MMCC cwPath]
}